ex post facto
adjective
°Formulated or enacted after some event, and then retroactively applied to it.